package com.aspose.cells;

class zbds extends zck {
   zbds(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   void b() {
      float var1 = this.g;
      float var2 = this.h;
      float var3 = this.e.v().h();
      float var4 = this.e.v().i();
      com.aspose.cells.b.a.b.zq var5 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var4);
      com.aspose.cells.b.a.b.a.zf var6 = this.a.e();
      this.a.a(4);
      com.aspose.cells.b.a.b.a.ze var7 = new com.aspose.cells.b.a.b.a.ze();
      var7.b(var5);
      com.aspose.cells.b.a.b.zc var8 = zbum.a(this.e.w(), var7);
      com.aspose.cells.b.a.b.zm var9 = zbum.a(this.e.x());
      float var10 = 0.0F;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var10 = Math.min(var5.h(), var5.i()) * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
         } else {
            var10 = var5.i() * 0.17F;
         }
      } else {
         var10 = var5.i() * 0.17F;
      }

      com.aspose.cells.b.a.b.zo[] var11 = new com.aspose.cells.b.a.b.zo[4];
      com.aspose.cells.b.a.b.zq var12;
      com.aspose.cells.b.a.b.zq var13;
      com.aspose.cells.b.a.b.zq var15;
      if (!this.e.w().a()) {
         if (var10 == 0.0F) {
            this.a.b(var8, var5);
         } else {
            switch(this.e.b) {
            case 1:
            case 4:
               var12 = new com.aspose.cells.b.a.b.zq(var5.d(), new com.aspose.cells.b.a.b.zt(var5.h(), var10));
               var13 = new com.aspose.cells.b.a.b.zq(var5.d(), new com.aspose.cells.b.a.b.zt(var5.h(), var10));
               var11[0] = new com.aspose.cells.b.a.b.zo(this.g, var10 / 2.0F + this.h);
               var11[1] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var10 / 2.0F + this.h);
               var11[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var10 + (var5.i() - 2.0F * var10) + var10 / 2.0F + this.h);
               var11[3] = new com.aspose.cells.b.a.b.zo(this.g, var10 + (var5.i() - 2.0F * var10) + var10 / 2.0F + this.h);
               this.a.a(var8, var12);
               com.aspose.cells.b.a.b.a.ze var14 = new com.aspose.cells.b.a.b.a.ze();
               var14.a(var13, 0.0F, 180.0F);
               var14.a(var11[0], var11[3]);
               var13.b(var10 + var5.i() - 2.0F * var10 + this.h);
               var14.a(var13, 180.0F, -180.0F);
               var14.a(var11[2], var11[1]);
               var14.i();
               this.a.a(var8, var14);
               break;
            case 2:
            case 3:
               var15 = new com.aspose.cells.b.a.b.zq(var1, var2 + var4 - var10, var3, var10);
               com.aspose.cells.b.a.b.zq var16 = new com.aspose.cells.b.a.b.zq(var1, var2 + var4 - var10, var3, var10);
               var11[0] = new com.aspose.cells.b.a.b.zo(this.g, var4 - var10 / 2.0F + this.h);
               var11[1] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var4 - var10 / 2.0F + this.h);
               var11[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var10 / 2.0F + this.h);
               var11[3] = new com.aspose.cells.b.a.b.zo(this.g, var10 / 2.0F + this.h);
               this.a.a(var8, var15);
               com.aspose.cells.b.a.b.a.ze var17 = new com.aspose.cells.b.a.b.a.ze();
               var17.a(var16, 0.0F, -180.0F);
               var17.a(var11[0], var11[3]);
               var16.b(this.h);
               var17.a(var16, 180.0F, 180.0F);
               var17.a(var11[2], var11[1]);
               var17.i();
               this.a.a(var8, var17);
            }
         }
      }

      if (!this.e.x().a()) {
         if (var10 == 0.0F) {
            this.a.a(var9, (int)var1, (int)var2, (int)var3, (int)var4);
         } else {
            switch(this.e.b) {
            case 1:
            case 4:
               var12 = new com.aspose.cells.b.a.b.zq(var5.d(), new com.aspose.cells.b.a.b.zt(var5.h(), var10));
               var13 = new com.aspose.cells.b.a.b.zq(var5.d(), new com.aspose.cells.b.a.b.zt(var5.h(), var10));
               var11[0] = new com.aspose.cells.b.a.b.zo(this.g, var10 / 2.0F + this.h);
               var11[1] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var10 / 2.0F + this.h);
               var11[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var10 + (var5.i() - 2.0F * var10) + var10 / 2.0F + this.h);
               var11[3] = new com.aspose.cells.b.a.b.zo(this.g, var10 + (var5.i() - 2.0F * var10) + var10 / 2.0F + this.h);
               this.a.a(var9, var12);
               this.a.a(var9, var13, 0.0F, 180.0F);
               this.a.a(var9, var11[0], var11[3]);
               var13.b(var10 + var5.i() - 2.0F * var10 + this.h);
               this.a.a(var9, var13, 180.0F, -180.0F);
               this.a.a(var9, var11[2], var11[1]);
               break;
            case 2:
            case 3:
               com.aspose.cells.b.a.b.zq var18 = new com.aspose.cells.b.a.b.zq(var1, var2 + var4 - var10, var3, var10);
               var15 = new com.aspose.cells.b.a.b.zq(var1, var2 + var4 - var10, var3, var10);
               var11[0] = new com.aspose.cells.b.a.b.zo(this.g, var4 - var10 / 2.0F + this.h);
               var11[1] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var4 - var10 / 2.0F + this.h);
               var11[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var10 / 2.0F + this.h);
               var11[3] = new com.aspose.cells.b.a.b.zo(this.g, var10 / 2.0F + this.h);
               this.a.a(var9, var18);
               this.a.a(var9, var15, 0.0F, -180.0F);
               this.a.a(var9, var11[0], var11[3]);
               var15.b(this.h);
               this.a.a(var9, var15, 180.0F, 180.0F);
               this.a.a(var9, var11[2], var11[1]);
            }
         }
      }

      super.a();
      this.a.a(var6);
   }
}
